home *** CD-ROM | disk | FTP | other *** search
- /* $VER: ScanImage.rexx 1.0 (03.07.96) for ImageEngineer V3.0 © by Jochen Grus */
-
- OPTIONS RESULTS
-
- address 'IMAGEENGINEER'
-
- options failat 25 /* ScanToDisk returns 0 or 20 */
-
-
- ram:ScanImage
-
- ok=1
- call SCAN() /* Scans the image into a temporary file */
- call IMPORTGRAPHIC() /* Loads Image into ImageEngineer */
- call DELETEFILE() /* Removes temporary image file */
-
- EXIT
-
-
-
- SCAN:
- /* Scans the image into a temporary file using the program "ScanToDisk". */
- if not 1=open('path','ENV:ScanQuix/Path','READ') then do
- ok=0
- return
- end
-
- pragma('DIRECTORY',READLN('path'))
- address command 'ScanQuix3/ScanToDisk FILE="Ram:ScanImage" TRUECOLOR NOICONS NOGUI'
- if RC>=5 then do
- ok=0
- return
- end
-
- return
-
-
-
- IMPORTGRAPHIC:
- /* Loads the image into ImageEngineer */
- if ok=0 then
- return
-
- 'OPEN Ram:ScanImage COLOUR'
- MyProject=Result
- return
-
-
-
- DELETEFILE:
- /* removes temporary file */
- address command 'delete ram:ScanImage'
- IE_TO_Front
- return
-